namespace MyBlog.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    [Serializable]
    public partial class AlbumDetailModel
    {
        public AlbumDetailModel()
        {
            PicCommentModels = new List<PicCommentModel>();
        }

        public int ID { get; set; }

        public int GroupID { get; set; }

        [StringLength(250)]
        public string Description { get; set; }

        [Required]
        [StringLength(50)]
        public string PicName { get; set; }

        [Required]
        [StringLength(10)]
        public string Postfix { get; set; }

        [Column(TypeName = "image")]
        [Required]
        public byte[] Content { get; set; }

        public DateTime UploadTime { get; set; }

        public  AlbumModel Album { get; set; }

        public  List<PicCommentModel> PicCommentModels { get; set; }
    }
}
